package com.shigu.mo.bo.requests;

import com.shigu.validation.tags.Telephone;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotEmpty;

/**
 * 用户注册请求
 */
public class RegeditRequest extends MoRequest{
    @NotEmpty(message = "手机号不能为空")
    @Telephone
    private String telephone;//手机号
    @NotEmpty(message = "密码不能为空")
    @Length(min = 6,message = "密码长度不能小于6位")
    private String password;//密码
    @NotEmpty(message = "验证码不能为空")
    private String valiCode;//验证码
    private String fromid;//来源ID

    public String getTelephone() {
        return telephone;
    }

    public void setTelephone(String telephone) {
        this.telephone = telephone;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getValiCode() {
        return valiCode;
    }

    public void setValiCode(String valiCode) {
        this.valiCode = valiCode;
    }

    public String getFromid() {
        return fromid;
    }

    public void setFromid(String fromid) {
        this.fromid = fromid;
    }
}
